import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue'
import dictTag from '@/components/dict-tag/dict-tag.vue'
import * as common from '@/utils/common.js'
import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from "@/utils/dict";
Vue.component('uni-nav-bar', uniNavBar)
Vue.component('dict-tag',dictTag)
Vue.use(plugins)
Vue.use(uView)
Vue.prototype.$common = common

Vue.config.productionTip = false
Vue.prototype.$store = store

Vue.prototype.$getDictDatas = getDictDatas;
Vue.prototype.$getDictDatas2 = getDictDatas2;
Vue.prototype.$getDictDataLabel = getDictDataLabel;
Vue.prototype.$dictType = DICT_TYPE;

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
